import request from '@/utils/request'

// 查询临时表列表
export function listQuestionTree(query) {
  return request({
    url: '/system/questionTree/list',
    method: 'get',
    params: query
  })
}

// 查询临时表详细
export function getQuestionTree(id) {
  return request({
    url: '/system/questionTree/' + id,
    method: 'get'
  })
}

// 新增临时表
export function addQuestionTree(data) {
  return request({
    url: '/system/questionTree',
    method: 'post',
    data: data
  })
}

// 修改临时表
export function updateQuestionTree(data) {
  return request({
    url: '/system/questionTree',
    method: 'put',
    data: data
  })
}

// 删除临时表
export function delQuestionTree(id) {
  return request({
    url: '/system/questionTree/' + id,
    method: 'delete'
  })
}
